package cn.hchaojie.camp.week1.qa;

import org.junit.Test;

public class TestBook {
	@Test
	public void test() {
		Book b1 = new Book("java核心编程", 118);
		Book b2 = new Book("java编程思想", 99);
		Book b3 = new Book("Effective Java", 55);
		
		Book[] books = {b1, b2, b3};
		
		double max = 0;
		for (Book b : books) {
			if (b.getPrice() > max) {
				max = b.getPrice();
			}
		}
		
		System.out.println(max);
	}
}
